package com.pkk.alert.web.config.properties;

import static com.pkk.alert.web.config.config.ScheduleConfig.THREAD_CORE;
import static com.pkk.alert.web.config.config.ScheduleConfig.THREAD_KEEP_ALIVE;
import static com.pkk.alert.web.config.config.ScheduleConfig.THREAD_MAX;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author peikunkun
 * @version V1.0
 * @date 2020-08-21 16:28
 * @since 线程池的配置
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Configuration
@ConfigurationProperties(prefix = "com.pkk.schedule.pool")
public class ThreadPoolProperties {

  /**
   * 核心线程大小
   */
  private Integer coreSize = THREAD_CORE;
  /**
   * 线程最大线程
   */
  private Integer maxSize = THREAD_MAX;
  /**
   * 空闲存活时长(秒)
   */
  private Integer keepAlive = THREAD_KEEP_ALIVE;


}
